package com.longteng.lesson.dao;

import com.longteng.lesson.entity.MemberObj;
import com.longteng.lesson.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Created by Administrator
 * DATE : 2018/6/24
 * TIME : 10:05
 * PROJECT : java-lesson
 * PACKAGE : com.longteng.lesson
 *
 * @author <a href="mailto:taki@qq.com">Administrator</a>
 */
@Mapper
public interface UserMapper {

    List<User> getAllUser(User user);

    List<User> findUserByColumn(User user);


    List<User> findUserByUserName(String userName);

    User  findUserAndMember(User user);

    void addUser(User user);

    void addMember(MemberObj member);

    void updateUser(User user);

    void insertAllUser(List<User> list);

    void updateAllUserById(List<User> list);
}
